package com.Ithema.d5_interface;

import java.util.ArrayList;

public class classmanager {
    private ArrayList<student> students = new ArrayList<>();
    private studentoperator studentoperator = new studentoperatorimpl2();
    public classmanager() {
        students.add(new student("其格瓦拉",'男',18));
        students.add(new student("发顺丰",'男',51));
        students.add(new student("大大拉",'女',92));
        students.add(new student("其打赏拉",'女',71));
    }
    public void printinfo(){
        studentoperator.printallinfo(students);

    }
    public void printscore(){
        studentoperator.printaveragescore(students);

    }
}
